home *** CD-ROM | disk | FTP | other *** search
- /*
-
- $VER: DiskCopyGUI 1.0 (12.05.96) by David De Groot
-
- This script works with Diskcopy in Sys:System
-
- */
-
-
-
- signal on break_c
- options failat 21
- NL = '0a'x
-
- bool = exists('libs:rexxreqtools.library')
- if BOOL = 0 then say "You need RexxReqTools.library"
- else call addlib('rexxreqtools.library',0,-30)
-
- dcheck = exists('sys:system/diskcopy')
- if dcheck = 0
- then do
- call rtezrequest("DISKCOPY not found in Sys:System...",,
- "Sorry!","ATTENTION!!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
- exit
- end
- else nop
-
- call rtezrequest("Welcome to DiskCopyGUI." nl,
- "Make a choice of proceeding in the folowing requesters.",,
- "_Continue|_About","Hello!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 0
- then call rtezrequest("DiskCopyGUI was written by David De Groot." nl,
- "Email: daviddg@glo.be" nl nl,
- "This program is Emailware:" nl nl,
- "Send your appreciation, bugreports," nl,
- "lists of dislikes and new Power Amiga's" nl,
- "to the author!" nl,,
- "I promise!","About",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- call rtezrequest("DF0: is the SOURCEdrive." nl "Pick the destination drive:",,
- "DF_1|DF_2|DF_3|_Cancel","Pick a target:",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 1 then secdrive = 'df1'
- if rtresult == 2 then secdrive = 'df2'
- if rtresult == 3 then secdrive = 'df3'
- if rtresult == 0 then exit
-
- call rtezrequest("What do you prefer:" nl nl "Standard diskcopy" nl "Quick copy (no verify)," nl "or" nl "Multiple disks?" nl,,
- "Copy|_Quick|_Multiple","Tell me:",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- if rtresult == 1 then call ddcommand
- if rtresult == 2 then call qdcommand
- if rtresult == 0 then call mdcommand
-
-
- /**/
- ddcommand:
- address command
- 'diskcopy df0: to ' || secdrive || ': '
- exit
-
-
- /**/
- qdcommand:
- address command
- 'diskcopy df0: to ' || secdrive || ': noverify'
- exit
-
- /**/
- mdcommand:
- address command
- 'diskcopy df0: to ' || secdrive || ': multi'
- exit
-
-
- /**/
- break_c:
- call rtezrequest("You entered a break." nl,
- "This quits DiskCopyGUI...",,
- "Right!","Heho!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- exit
-
-